import React, { Component } from 'react';
import Wheaders from '../../components/Headers';
import Wcarousel from '../../components/Carousel';
import Recommend from '../../components/Recommend';

class Home extends Component {

    render() {
        return (
            <div className='education-home'>
                {/* 缺少返回首页的按钮 */}
                <Wheaders left={'搜索'} middle={'首页'} right={'我的'} />
                <Wcarousel onChange={this.goLogin.bind(this, '/login')} />
                <Recommend ></Recommend>
            </div>
        );
    }

    UNSAFE_componentWillMount() {

    }

    componentDidMount (){

    }

    goLogin (url) {
        this.props.history.push({pathname:url,state:{'day':'所传参数'}})
    }

}
export default Home;


